var timestamp = Date.parse(new Date());
if (localStorage.outtime <= timestamp) {
    window.localStorage.clear();
}

/* window.onload调用*/
if (localStorage.token == null) {
    var host = window.location.host;
    var protocol = window.location.protocol;
    var path = protocol + "//" + host + '/login.html?unlogin=1';
    // console.log(path);
    window.location = path;
}